/*
 * Copyright (C) 2018 guomw.Inc. All rights reserved.
 * 项目名称： report-manage
 * 文件名称： Constant.java
 * Date：18-11-5 上午10:54
 * Author: guomw
 */

package com.guomw.report.common.config;

/**
 * 常量定义
 *
 * @author guomw
 */
public class Constant {
    public static final String PROFILE_DEV = "development";
    /**
     * 单元测试
     */
    public static final String PROFILE_UNIT_TEST = "unit_test";
    public static String ENCODING_UTF8 = "utf-8";

    public static final String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_FORMAT = "yyyy-MM-dd";
    /**
     * 时间戳的有效期时间,默认30分钟，单位秒
     */
    public static final int TIMESTAMP_VALID_TIME_LENGTH = 30 * 60;

    /**
     * 小数位数
     */
    public static final int SCALE = 2;

    public static final int PRECISION = 9;

    /**
     * 签名密钥
     */
    public static final String SECRET_KEY = "4165a8d240b29af3f41818d10599d0d1";
    /**
     * API 参数常量定义
     */
    public static final String APP_TIMESTAMP_KEY = "timestamp";
    public static final String SIGN_KEY = "sign";

    /**
     * API Header 参数常量定义
     */
    public static final String APP_MERCHANT_ID_KEY = "merchantId";

    /**
     * 检测文件目录
     */
    public static final String CHECKED = "checked";
    /**
     * 上链文件目录
     */
    public static final String CHAIN = "chain";

    /**
     * pdf目录
     */
    public static final String PDF = "pdf";
    /**
     * 分析图片地址
     */
    public static final String PIC = "pic";
    /**
     * 报告地址
     */
    public  static final  String REPORT = "report";
}
